package com.thunisoft.guava;

import java.util.ArrayList;
import java.util.List;

import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Table;

/**
 * @title TestApp.java
 * @package com.thunisoft.guava
 * @projectName spring.boot
 * @author yzj
 * @date 2019年7月2日 下午5:01:46
 */
public class TestApp {

	public static void main(String[] args) {
		Table<String, Integer, String> table = HashBasedTable.create();
		table.put("ytxx", 1, "新申请");
		table.put("ytxx", 2, "待安排");
		table.put("ytxx", 3, "退回");
		table.put("ytxx", 4, "已安排");
		table.put("ytxx", 5, "会议中");
		table.put("ytxx", 6, "已结束");
		table.put("ytxx", 7, "已取消");
		table.put("ytxx", 8, "已确认");

		table.put("hyxx", 1, "未提交");
		table.put("hyxx", 2, "未开始");
		table.put("hyxx", 3, "进行中");
		table.put("hyxx", 4, "已结束");

		table.put("mj", 1, "秘密");
		table.put("mj", 2, "机密");
		table.put("mj", 3, "绝密");

		table.put("jjcd", 1, "正常");
		table.put("jjcd", 2, "急");
		table.put("jjcd", 3, "特急");

		table.put("hycl", 1, "未提交");
		table.put("hycl", 2, "审核中");
		table.put("hycl", 3, "审核不通过");
		table.put("hycl", 4, "审核通过");
		table.put("hycl", 5, "已整理");

		table.put("ytlb", 1, "讨论案件");
		table.put("ytlb", 2, "干部人事");
		table.put("ytlb", 3, "传达学习");
		table.put("ytlb", 4, "工作事项");
		table.put("ytlb", 5, "政策法规");
		table.put("ytlb", 6, "其他");

		System.out.println(table.get("hxx", 123));
		
		System.err.println("====:"+new StringBuilder("").toString());
		List<String> test=new ArrayList<String>();
		System.out.println("abc"+test.contains("123"));
		test.forEach(item->{
			System.out.println("++++++");
			System.out.println(item);
		});
	}
}
